﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GTAuto.DAL.DAL;
using GTAuto.DAL.Entities;

namespace GTauto.Site.FrontEnd.Controllers
{
    public class AutoBrandsController : Controller
    {
        // 
        // GET: /AutoBrands/

        public ActionResult Index(int id)
        { 
            GTBrand gtBrand = DALBrands.Singleton.Get(id);

            return View(gtBrand);
        }

        public ActionResult BrandModels(int id)
        {
            int count;
            List<GTModel> models = DALModels.Singleton.GetByBrand(id,1,10000,out count);
            return View(models);
        }

    }
}
